<?
    include_once('../classes/class.register.machine.php');
    
    session_start();
    
    if (isset($_POST['addMachine']))
    {
        $registerMachine = new RegisterMachine();
        
        if($registerMachine->process())
        {
          echo "<script>loadMachines();</script>";
          echo "<script>alert('Maquina agregada satisfactoriamente');</script>";
        }else
            {
             echo '<p class="error">';
             echo '<b>'.$registerMachine->show_errors().'</b>'; 
             echo '</p>';
            }
    }
?>
